"use strict";
/**
 * @description 用户角色关联表
 * @author jacinto
 */
module.exports = (app) => {
  const { INTEGER } = app.Sequelize;

  const SysUserRole = app.model.define("sys_user_role", {
    userId: {
      type: INTEGER,
      primaryKey: true,
      allowNull: false,
      comment: "用户ID",
    },
    roleId: {
      type: INTEGER,
      primaryKey: true,
      allowNull: false,
      comment: "角色ID",
    },
  });
  SysUserRole.associate = () => { };

  return SysUserRole;
};
